<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item">
            <label class="layui-form-label">任务标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" lay-reqtext="任务标题不能为空" placeholder="请输入任务标题" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">任务类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" lay-reqtext="任务类型不能为空">
                    <option value=""></option>
                    {foreach $typeOptions as $k=>$v}
                    <option value='{$k}'>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">任务脚本</label>
            <div class="layui-input-block">
                <input type="text" name="shell" class="layui-input" lay-verify="required" lay-reqtext="任务脚本不能为空" placeholder="请输入任务脚本" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">任务频率</label>
            <div class="layui-input-block">
                <input type="text" name="frequency" class="layui-input" style="word-spacing: 18px;" lay-verify="required" lay-reqtext="任务频率不能为空" placeholder="请输入任务频率" value="* * * * * *">
                <blockquote class="layui-elem-quote" style="border-left: none;margin-top: 7px;">
                    <pre><code>*   *   *   *   *   *
-   -   -   -   -   -
|   |   |   |   |   +------ day of week (0 - 6) (Sunday=0)
|   |   |   |   +---------- month (1 - 12)
|   |   |   +-------------- day of month (1 - 31)
|   |   +------------------ hour (0 - 23)
|   +---------------------- min (0 - 59)
+-------------------------- sec (0-59)[可省略，如果没有0位,则最小时间粒度是分钟]</code></pre>
                </blockquote>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea" placeholder="请输入备注信息"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" class="layui-input" lay-verify="number" lay-reqtext="排序不能为空" placeholder="请输入排序" value="0">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                {foreach $statusOptions as $k=>$v}
                <input type="radio" name="status" value="{$k}" title="{$v}" {in name="k" value="0"}checked{/in}>
                {/foreach}
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
